<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>love_air: com.example.akisame_lin.love_air2.trace.TraceUtil类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">love_air
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacecom.html">com</a></li><li class="navelem"><a class="el" href="namespacecom_1_1example.html">example</a></li><li class="navelem"><a class="el" href="namespacecom_1_1example_1_1akisame__lin.html">akisame_lin</a></li><li class="navelem"><a class="el" href="namespacecom_1_1example_1_1akisame__lin_1_1love__air2.html">love_air2</a></li><li class="navelem"><a class="el" href="namespacecom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace.html">trace</a></li><li class="navelem"><a class="el" href="classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace_1_1_trace_util.html">TraceUtil</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace_1_1_trace_util-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">com.example.akisame_lin.love_air2.trace.TraceUtil类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
com.example.akisame_lin.love_air2.trace.TraceUtil 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace_1_1_trace_util__coll__graph.png" border="0" usemap="#com_8example_8akisame__lin_8love__air2_8trace_8_trace_util_coll__map" alt="Collaboration graph"/></div>
<!-- MAP 0 -->
<center><span class="legend">[<a href="graph_legend.html">图例</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:acb3327c4001f4adf9021efd0ab08e1c2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace_1_1_trace_util.html#acb3327c4001f4adf9021efd0ab08e1c2">drawHistoryTrack</a> (BaiduMap baiduMap, List&lt; LatLng &gt; points, SortType sortType)</td></tr>
<tr class="separator:acb3327c4001f4adf9021efd0ab08e1c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a92503eee73e5103a40d0a1ad80159f68"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace_1_1_trace_util.html#a92503eee73e5103a40d0a1ad80159f68">animateMapStatus</a> (LatLng point, float zoom)</td></tr>
<tr class="separator:a92503eee73e5103a40d0a1ad80159f68"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a22ad9d640bc36402ecf0156cf64685f5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace_1_1_trace_util.html#a22ad9d640bc36402ecf0156cf64685f5">animateMapStatus</a> (List&lt; LatLng &gt; points)</td></tr>
<tr class="separator:a22ad9d640bc36402ecf0156cf64685f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06ff7ea1a310188cdb9fffe8d2b58ce3"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace_1_1_trace_util.html#a06ff7ea1a310188cdb9fffe8d2b58ce3">getAngle</a> (LatLng fromPoint, LatLng toPoint)</td></tr>
<tr class="separator:a06ff7ea1a310188cdb9fffe8d2b58ce3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a3d1f6f674d4e5aa7905065435bdbeba7"><td class="memItemLeft" align="right" valign="top">static double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace_1_1_trace_util.html#a3d1f6f674d4e5aa7905065435bdbeba7">getSlope</a> (LatLng fromPoint, LatLng toPoint)</td></tr>
<tr class="separator:a3d1f6f674d4e5aa7905065435bdbeba7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18fd0500677f5a558dd94bdcbf7a28c2"><td class="memItemLeft" align="right" valign="top">static LatLng&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace_1_1_trace_util.html#a18fd0500677f5a558dd94bdcbf7a28c2">convertTrace2Map</a> (com.baidu.trace.model.LatLng traceLatLng)</td></tr>
<tr class="separator:a18fd0500677f5a558dd94bdcbf7a28c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1e5fe83df677f46df6bfb67959c9f7d"><td class="memItemLeft" align="right" valign="top">static boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace_1_1_trace_util.html#ac1e5fe83df677f46df6bfb67959c9f7d">isZeroPoint</a> (double latitude, double longitude)</td></tr>
<tr class="separator:ac1e5fe83df677f46df6bfb67959c9f7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a38c1e50c145bbffaea2436d26a8aa5d1"><td class="memItemLeft" align="right" valign="top">static boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace_1_1_trace_util.html#a38c1e50c145bbffaea2436d26a8aa5d1">isEqualToZero</a> (double value)</td></tr>
<tr class="separator:a38c1e50c145bbffaea2436d26a8aa5d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:a45b7fa4b50ef03b6f197f600dd7a4fcc"><td class="memItemLeft" align="right" valign="top">Overlay&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace_1_1_trace_util.html#a45b7fa4b50ef03b6f197f600dd7a4fcc">polylineOverlay</a></td></tr>
<tr class="separator:a45b7fa4b50ef03b6f197f600dd7a4fcc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1969b78bd5571f34bb386512211255c6"><td class="memItemLeft" align="right" valign="top">BaiduMap&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace_1_1_trace_util.html#a1969b78bd5571f34bb386512211255c6">mBaiduMap</a></td></tr>
<tr class="separator:a1969b78bd5571f34bb386512211255c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac3c71aef41b8930b5129e511e644ec4"><td class="memItemLeft" align="right" valign="top">MapStatus&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace_1_1_trace_util.html#aac3c71aef41b8930b5129e511e644ec4">mapStatus</a></td></tr>
<tr class="separator:aac3c71aef41b8930b5129e511e644ec4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>Created by cs_android on 2018/1/15. </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a92503eee73e5103a40d0a1ad80159f68"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a92503eee73e5103a40d0a1ad80159f68">&#9670;&nbsp;</a></span>animateMapStatus() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void com.example.akisame_lin.love_air2.trace.TraceUtil.animateMapStatus </td>
          <td>(</td>
          <td class="paramtype">LatLng&#160;</td>
          <td class="paramname"><em>point</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>zoom</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a22ad9d640bc36402ecf0156cf64685f5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a22ad9d640bc36402ecf0156cf64685f5">&#9670;&nbsp;</a></span>animateMapStatus() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void com.example.akisame_lin.love_air2.trace.TraceUtil.animateMapStatus </td>
          <td>(</td>
          <td class="paramtype">List&lt; LatLng &gt;&#160;</td>
          <td class="paramname"><em>points</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a18fd0500677f5a558dd94bdcbf7a28c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a18fd0500677f5a558dd94bdcbf7a28c2">&#9670;&nbsp;</a></span>convertTrace2Map()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static LatLng com.example.akisame_lin.love_air2.trace.TraceUtil.convertTrace2Map </td>
          <td>(</td>
          <td class="paramtype">com.baidu.trace.model.LatLng&#160;</td>
          <td class="paramname"><em>traceLatLng</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>将轨迹坐标对象转换为地图坐标对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">traceLatLng</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="acb3327c4001f4adf9021efd0ab08e1c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acb3327c4001f4adf9021efd0ab08e1c2">&#9670;&nbsp;</a></span>drawHistoryTrack()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void com.example.akisame_lin.love_air2.trace.TraceUtil.drawHistoryTrack </td>
          <td>(</td>
          <td class="paramtype">BaiduMap&#160;</td>
          <td class="paramname"><em>baiduMap</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">List&lt; LatLng &gt;&#160;</td>
          <td class="paramname"><em>points</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SortType&#160;</td>
          <td class="paramname"><em>sortType</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>绘制历史轨迹 </p>

</div>
</div>
<a id="a06ff7ea1a310188cdb9fffe8d2b58ce3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a06ff7ea1a310188cdb9fffe8d2b58ce3">&#9670;&nbsp;</a></span>getAngle()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double com.example.akisame_lin.love_air2.trace.TraceUtil.getAngle </td>
          <td>(</td>
          <td class="paramtype">LatLng&#160;</td>
          <td class="paramname"><em>fromPoint</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LatLng&#160;</td>
          <td class="paramname"><em>toPoint</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>根据两点算取图标转的角度 </p>

</div>
</div>
<a id="a3d1f6f674d4e5aa7905065435bdbeba7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d1f6f674d4e5aa7905065435bdbeba7">&#9670;&nbsp;</a></span>getSlope()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static double com.example.akisame_lin.love_air2.trace.TraceUtil.getSlope </td>
          <td>(</td>
          <td class="paramtype">LatLng&#160;</td>
          <td class="paramname"><em>fromPoint</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LatLng&#160;</td>
          <td class="paramname"><em>toPoint</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>算斜率 </p>

</div>
</div>
<a id="a38c1e50c145bbffaea2436d26a8aa5d1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a38c1e50c145bbffaea2436d26a8aa5d1">&#9670;&nbsp;</a></span>isEqualToZero()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static boolean com.example.akisame_lin.love_air2.trace.TraceUtil.isEqualToZero </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>校验double数值是否为0</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="ac1e5fe83df677f46df6bfb67959c9f7d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac1e5fe83df677f46df6bfb67959c9f7d">&#9670;&nbsp;</a></span>isZeroPoint()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static boolean com.example.akisame_lin.love_air2.trace.TraceUtil.isZeroPoint </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>latitude</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>longitude</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="aac3c71aef41b8930b5129e511e644ec4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac3c71aef41b8930b5129e511e644ec4">&#9670;&nbsp;</a></span>mapStatus</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">MapStatus com.example.akisame_lin.love_air2.trace.TraceUtil.mapStatus</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a1969b78bd5571f34bb386512211255c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1969b78bd5571f34bb386512211255c6">&#9670;&nbsp;</a></span>mBaiduMap</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">BaiduMap com.example.akisame_lin.love_air2.trace.TraceUtil.mBaiduMap</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a45b7fa4b50ef03b6f197f600dd7a4fcc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a45b7fa4b50ef03b6f197f600dd7a4fcc">&#9670;&nbsp;</a></span>polylineOverlay</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Overlay com.example.akisame_lin.love_air2.trace.TraceUtil.polylineOverlay</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>app/src/main/java/com/example/akisame_lin/love_air2/trace/<a class="el" href="_trace_util_8java.html">TraceUtil.java</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
